<UserControl x:Class="Rage.UI.MainPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
  xmlns:local="clr-namespace:Rage.UI"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:Rage="clr-namespace:Rage;assembly=Rage.Base.WPF"
  xmlns:splitButton="clr-namespace:Delay;assembly=SplitButtonWpf"
  xmlns:System="clr-namespace:System;assembly=mscorlib"
  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
  mc:Ignorable="d" d:DesignWidth="915" d:DesignHeight="844">

  <UserControl.DataContext>
    <Rage:Character />
  </UserControl.DataContext>

  <Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
      <RowDefinition Height="30" />
      <RowDefinition Height="*" />
      <RowDefinition Height="24" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="350" />
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Grid.Background>
      <LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
        <GradientStop Color="#FFFFFFFF" Offset="0" />
        <GradientStop Color="#FFDADADA" Offset="1" />
      </LinearGradientBrush>
    </Grid.Background>
    <local:ItemTooltip x:Name="ItemTooltip" />
    <!--IFSL
    <Rectangle VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4" Margin="0">
      <Rectangle.Stroke>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
          <GradientStop Color="#FFA3AEB9"/>
          <GradientStop Color="#FF8399A9" Offset="0.375"/>
          <GradientStop Color="#FF718597" Offset="0.375"/>
          <GradientStop Color="#FF617584" Offset="1"/>
        </LinearGradientBrush>
      </Rectangle.Stroke>
      <Rectangle.Fill>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
          <GradientStop Color="#FFDEDEDE" Offset="1"/>
          <GradientStop Color="#FFFFFFFF" Offset="0"/>
        </LinearGradientBrush>
      </Rectangle.Fill>
    </Rectangle>
    <StackPanel Margin="0,4,0,0" VerticalAlignment="Top" Grid.ColumnSpan="4" Grid.Row="0" Grid.Column="0" Orientation="Horizontal" d:IsHidden="True">
      <splitButton:MenuButton Content="File" x:Name="FileMenu" HorizontalAlignment="Left" Margin="2,0,2,0" Padding="6,3,6,3">
        <splitButton:MenuButton.ButtonMenuItemsSource>
          <MenuItem Header="New Character..." Click="NewCharacter"/>
          <Separator/>
          <MenuItem Header="Open Character File..." Click="OpenCharacter"/>
          <MenuItem Header="Load from Battle.Net..." Click="LoadFromBNet"/>
          <MenuItem Header="Load from Rage Addon..." Click="LoadFromRageAddon"/>
          <MenuItem Header="Load from RAGE4 Repository..." Click="LoadFromRAGE4Repository"/>
          <Separator/>
          <MenuItem x:Name="TMI_Save" Header="Save to Character File..." Click="SaveCharacter"/>
          <MenuItem x:Name="TMI_SaveAs" Header="Save As to Character File..." Click="SaveAsCharacter"/>
          <MenuItem Header="Save to RAGE4 Repository..." Click="SaveToRAGE4Repository"/>
          <MenuItem Header="Export to Rage Addon..." Click="ExportToRageAddon"/>
          <Separator/>
          <MenuItem Header="Open Saved Upgrade List..." Click="OpenSavedUpgradeList"/>
        </splitButton:MenuButton.ButtonMenuItemsSource>
      </splitButton:MenuButton>
      <splitButton:MenuButton Content="Tools" x:Name="ToolsMenu" HorizontalAlignment="Left" Margin="2,0,2,0" Padding="6,3,6,3">
        <splitButton:MenuButton.ButtonMenuItemsSource>
          <MenuItem Header="Optimizer..." Click="ShowOptimizer"/>
          <MenuItem Header="Batch Tools..." Click="ShowBatchTools"/>
          <Separator />
          <MenuItem Header="Save Item Set" Click="SaveItemSet_Click"/>
          <MenuItem Header="Remove Item Set" Click="RemoveItemSet_Click"/>
          <MenuItem Header="Equip Item Set" Click="EquipItemSet_Click"/>
          <MenuItem Header="Compare Item Set to Equipped" Click="CompareItemSet_Click"/>
          <Separator />
          <MenuItem Header="Reset Item Cost" Click="ResetItemCost_Click"/>
          <MenuItem Header="Load Justice Cost" Click="LoadItemCostJustice_Click"/>
          <MenuItem Header="Load Valor Cost" Click="LoadItemCostValor_Click"/>
          <MenuItem Header="Load Honor Cost" Click="LoadItemCostHonor_Click"/>
          <MenuItem Header="Load Conquest Cost" Click="LoadItemCostConquest_Click"/>
          <MenuItem Header="Load Crystallized Firestone Cost" Click="LoadItemCostCrystallizedFirestone_Click"/>
          <Separator />
          <MenuItem Header="Compare Character to Another" Click="CompareCharacters_Click"/>
        </splitButton:MenuButton.ButtonMenuItemsSource>
      </splitButton:MenuButton>
      <splitButton:MenuButton Content="Import" x:Name="ImportMenu" HorizontalAlignment="Left" Margin="2,0,2,0" Padding="6,3,6,3">
        <splitButton:MenuButton.ButtonMenuItemsSource>
          <MenuItem Header="Reload Current Character from Battle.Net" Click="ReloadFromBNet_Click"/>
          <MenuItem Header="Reload Current Character from Rage Addon" Click="RageAddonReload_Click"/>
          <Separator/>
          <MenuItem Header="Load Possible Upgrades from Torhead (NYI)"/>
          <MenuItem Header="Load Items From Torhead Filter (NYI)"/>
          <Separator/>
          <MenuItem Header="Refresh Items Currently Worn from Torhead" Click="RefreshItemsCurrentlyWorn_Click"/>
          <MenuItem Header="Update Item Cache from Torhead (NYI)" Click="UpdateItemCacheFromTorhead_Click"/>
        </splitButton:MenuButton.ButtonMenuItemsSource>
      </splitButton:MenuButton>
      <splitButton:MenuButton Content="Options" x:Name="OptionsMenu" HorizontalAlignment="Left" Margin="2,0,2,0" Padding="6,3,6,3">
        <splitButton:MenuButton.ButtonMenuItemsSource>
          <MenuItem Header="Edit Options..." Click="ShowOptions"/>
          <Separator/>
          <MenuItem Header="Edit Items..." Click="ShowItemEditor"/>
          <MenuItem Header="Refine Types of Items Listed..." Click="ShowItemRefinement" Visibility="Collapsed"/>
          <MenuItem Header="Edit Item Filters..." Click="ShowItemFilters" Visibility="Collapsed"/>
          <MenuItem Header="Edit Gemming Templates..." Click="ShowGemmingTemplates"/>
          <Separator Visibility="Collapsed"/>
          <MenuItem Header="Reset Item Cost" Click="ResetItemCost" Visibility="Collapsed"/>
          <MenuItem Header="Load Item Cost" Click="LoadItemCost" Visibility="Collapsed"/>
          <MenuItem Header="Save Item Cost" Click="SaveItemCost" Visibility="Collapsed"/>
          <MenuItem Header="Load Emblem of Frost Cost" Click="LoadEmblemOfFrostCost" Visibility="Collapsed"/>
          <Separator/>
          <MenuItem Header="Reset Item Cache" Click="ResetItemCache"/>
          <MenuItem Header="Reset All Caches" Click="ResetAllCaches"/>
          <MenuItem Header="Manually Edit a Cache (NYI)"/>
        </splitButton:MenuButton.ButtonMenuItemsSource>
      </splitButton:MenuButton>
      <splitButton:MenuButton Content="Windows" x:Name="WindowsMenu" HorizontalAlignment="Left" Margin="2,0,2,0" Padding="6,3,6,3" Visibility="Collapsed">
        <splitButton:MenuButton.ButtonMenuItemsSource>
        </splitButton:MenuButton.ButtonMenuItemsSource>
      </splitButton:MenuButton>
      <splitButton:MenuButton Content="Help" x:Name="HelpMenu" HorizontalAlignment="Left" Margin="2,0,2,0" Padding="6,3,6,3">
        <splitButton:MenuButton.ButtonMenuItemsSource>
          <MenuItem Header="Rage Help Page" Click="ShowRageHelpPage"/>
          <MenuItem Header="Tour of Rage" Click="ShowTourOfRage"/>
          <MenuItem Header="Gemmings" Click="ShowGemmingsHelp"/>
          <MenuItem Header="Gear Optimization" Click="ShowGearOptimizationHelp"/>
          <MenuItem Header="Item Filtering" Click="ShowItemFilteringHelp"/>
          <MenuItem Header="Model Status" Click="ShowModelStatusHelp"/>
          <MenuItem Header="Welcome Screen" Click="ShowWelcomeScreen"/>
          <Separator/>
          <MenuItem Header="Rage Website" Click="ShowRageWebsite"/>
          <MenuItem Header="Donate" Click="ShowDonate"/>
        </splitButton:MenuButton.ButtonMenuItemsSource>
      </splitButton:MenuButton>
    </StackPanel>
    ENDIFSL-->
    <!--IFWPF-->
    <Menu Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="0" Margin="0,4,0,0" VerticalAlignment="Stretch">
      <MenuItem x:Name="FileMenu" Margin="4,0,4,0" Header="File" HorizontalAlignment="Left">
        <MenuItem Click="NewCharacter" Header="New Character..." />
        <Separator />
        <MenuItem Click="OpenCharacter" Header="Open Character File..." />
        <MenuItem Click="LoadFromBNet" Header="Load from Battle.Net..." />
        <Separator />
        <MenuItem x:Name="TMI_Save" Click="SaveCharacter" Header="Save Character File..." />
        <MenuItem x:Name="TMI_SaveAs" Click="SaveAsCharacter" Header="Save As to Character File..." />
        <Separator />
        <MenuItem Click="OpenSavedUpgradeList" Header="Open Saved Upgrade List..." />
      </MenuItem>
      <MenuItem x:Name="ToolsMenu" Margin="4,0,4,0" Header="Tools" HorizontalAlignment="Left">
        <MenuItem Click="ShowOptimizer" Header="Optimizer..." />
        <MenuItem Click="ShowBatchTools" Header="Batch Tools..." />
        <Separator />
        <MenuItem Click="SaveItemSet_Click" Header="Save Item Set" />
        <MenuItem Click="RemoveItemSet_Click" Header="Remove Item Set" />
        <MenuItem Click="EquipItemSet_Click" Header="Equip Item Set" />
        <MenuItem Click="CompareItemSet_Click" Header="Compare Item Set to Equipped" />
        <Separator />
        <MenuItem Click="ResetItemCost_Click" Header="Reset Item Cost" />
        <MenuItem Header="Load Item Cost">
          <MenuItem Click="LoadItemCostJustice_Click" Header="Justice" />
          <MenuItem Click="LoadItemCostValor_Click" Header="Valor" />
          <MenuItem Click="LoadItemCostHonor_Click" Header="Honor" />
          <MenuItem Click="LoadItemCostConquest_Click" Header="Conquest" />
          <MenuItem Click="LoadItemCostCrystallizedFirestone_Click" Header="Crystallized Firestone" />
        </MenuItem>
        <Separator />
        <MenuItem Click="CompareCharacters_Click" Header="Compare Character to Another" />
        <!--<Separator />
        <MenuItem Click="SolvePuzzleBoss_Click" Header="Solve Puzzle Boss" />-->
      </MenuItem>
      <MenuItem x:Name="ImportMenu" Margin="4,0,4,0" Header="Import" HorizontalAlignment="Left">
        <MenuItem Click="ReloadFromBNet_Click" Header="Reload Current Character from Battle.Net" />
        <Separator />
        <MenuItem Header="Load Possible Upgrades from Torhead (NYI)" />
        <MenuItem Header="Load Items From Torhead Filter (NYI)" />
        <Separator />
        <MenuItem Click="RefreshItemsCurrentlyWorn_Click" Header="Refresh Items Currently Worn from Torhead" />
        <MenuItem Click="UpdateItemCacheFromTorhead_Click" Header="Update Item Cache from Torhead (NYI)" />
        <Separator />
        <MenuItem Click="ReadTorFilesAbility_Click" Header="ToR Files: Ability" />
        <MenuItem Click="ReadTorFilesAbilityPackage_Click" Header="ToR Files: AbilityPackage" />
        <MenuItem Click="ReadTorFilesAdvancedClass_Click" Header="ToR Files: AdvancedClass" />
        <MenuItem Click="ReadTorFilesArea_Click" Header="ToR Files: Area" />
        <MenuItem Click="ReadTorFilesClassSpec_Click" Header="ToR Files: ClassSpec" />
        <MenuItem Click="ReadTorFilesCodex_Click" Header="ToR Files: Codex" />
        <MenuItem Click="ReadTorFilesCompanion_Click" Header="ToR Files: Companion" />
        <MenuItem Click="ReadTorFilesEncounter_Click" Header="ToR Files: Encounter" />
        <MenuItem Click="ReadTorFilesIModel_Click" Header="ToR Files: IModel" />
        <MenuItem Click="UpdateItemCacheFromTorFiles_Click" Header="ToR Files: Items" />
        <MenuItem Click="ReadTorFilesItemSet_Click" Header="ToR Files: ItemSet" />
        <MenuItem Click="ReadTorFilesMapNote_Click" Header="ToR Files: MapNote" />
        <MenuItem Click="ReadTorFilesNPC_Click" Header="ToR Files: NPC" />
        <MenuItem Click="ReadTorFilesPackageAbility_Click" Header="ToR Files: PackageAbility" />
        <MenuItem Click="ReadTorFilesPlaceable_Click" Header="ToR Files: Placeable" />
        <MenuItem Click="ReadTorFilesQuest_Click" Header="ToR Files: Quest" />
        <MenuItem Click="ReadTorFilesQuestBranch_Click" Header="ToR Files: QuestBranch" />
        <MenuItem Click="ReadTorFilesQuestStep_Click" Header="ToR Files: QuestStep" />
        <MenuItem Click="ReadTorFilesQuestTask_Click" Header="ToR Files: QuestTask" />
        <MenuItem Click="ReadTorFilesSchematic_Click" Header="ToR Files: Schematic" />
        <MenuItem Click="ReadTorFilesTalents_Click" Header="ToR Files: Talents" />
      </MenuItem>
      <MenuItem x:Name="OptionsMenu" Margin="4,0,4,0" Header="Options" HorizontalAlignment="Left">
        <MenuItem Click="ShowOptions" Header="Edit Options..." />
        <Separator />
        <MenuItem Click="ShowItemEditor" Header="Edit Items..." />
        <MenuItem Click="ShowItemRefinement" Header="Refine Types of Items Listed..." Visibility="Collapsed" />
        <MenuItem Click="ShowItemFilters" Header="Edit Item Filters..." Visibility="Collapsed" />
        <MenuItem Click="ShowGemmingTemplates" Header="Edit Gemming Templates..." />
        <Separator />
        <MenuItem Click="ResetItemCache" Header="Reset Item Cache" />
        <MenuItem Click="ResetAllCaches" Header="Reset All Caches" />
        <MenuItem Header="Manually Edit a Cache... (NYI)" />
      </MenuItem>
      <MenuItem x:Name="HelpMenu" Margin="4,0,4,0" Header="Help" HorizontalAlignment="Left">
        <MenuItem Click="ShowRageHelpPage" Header="Rage Help Page" />
        <MenuItem Click="ShowTourOfRage" Header="Tour of Rage" />
        <MenuItem Click="ShowGemmingsHelp" Header="Gemmings" />
        <MenuItem Click="ShowGearOptimizationHelp" Header="Gear Optimization" />
        <MenuItem Click="ShowItemFilteringHelp" Header="Item Filtering" />
        <MenuItem Click="ShowModelStatusHelp" Header="Model Status" />
        <MenuItem Click="ShowWelcomeScreen" Header="Welcome Screen" />
        <Separator />
        <MenuItem Click="ShowRageWebsite" Header="Rage Website" />
        <MenuItem Click="ShowDonate" Header="Donate" />
      </MenuItem>
    </Menu>
    <!--ENDIFWPF-->
    <WrapPanel x:Name="Wrap_LeftSide" Grid.Column="0" Grid.Row="1" Margin="2,2,0,0" HorizontalAlignment="Right" Orientation="Vertical" VerticalAlignment="Top">
      <local:ItemButtonWithEnchant x:Name="EarButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="Implant1Button" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="Implant2Button" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="WristButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="Relic1Button" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="Relic2Button" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="MainHandButton" Margin="2">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
    </WrapPanel>
    <DockPanel Grid.Column="1" Grid.Row="1" Margin="2" LastChildFill="True">
      <StackPanel Margin="2,2,2,0" HorizontalAlignment="Center" Orientation="Horizontal" VerticalAlignment="Top" DockPanel.Dock="Bottom"></StackPanel>
      <TabControl VerticalAlignment="Stretch" DockPanel.Dock="Top">
        <TabItem x:Name="StatsTab" Header="Stats">
          <Grid>
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto" />
              <RowDefinition Height="Auto" />
              <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <TextBlock x:Name="LB_BasicInfos" Grid.Row="0" FontSize="10" FontWeight="Bold" Text="Char@US-Server&#xA;Sith Pureblood Juggernaut-Juggernaut, Cyb" TextAlignment="Center" />
            <layoutToolkit:Accordion Grid.Row="1" HorizontalAlignment="Stretch" MinHeight="23" SelectionMode="ZeroOrOne">
              <layoutToolkit:AccordionItem Header="Expand to Edit Basic Information" HorizontalContentAlignment="Stretch" IsSelected="False" VerticalAlignment="Top">
                <Grid>
                  <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="24" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                  </Grid.RowDefinitions>
                  <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*" />
                  </Grid.ColumnDefinitions>

                  <Grid Grid.ColumnSpan="2">
                    <Grid.RowDefinitions>
                      <RowDefinition Height="Auto" />
                      <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                      <ColumnDefinition Width="*" />
                      <ColumnDefinition Width="*" />
                      <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock Margin="1,0,2,0" Text="Name:" TextWrapping="Wrap" />
                    <TextBlock Grid.Column="1" Margin="2,0" Text="Realm:" TextWrapping="Wrap" d:LayoutOverrides="Width" />
                    <TextBlock Grid.Column="2" Margin="2,0,1,0" Text="Region:" TextWrapping="Wrap" />
                    <TextBox x:Name="NameText" Grid.Row="1" Margin="1,0,2,0" Text="{Binding Mode=TwoWay, Path=Name}" TextChanged="BasicInfoField_TextChanged" TextWrapping="Wrap" />
                    <TextBox x:Name="RealmText" Grid.Column="1" Grid.Row="1" Margin="2,0" RenderTransformOrigin="1.13,0.417" Text="{Binding Mode=TwoWay, Path=Realm}" TextChanged="BasicInfoField_TextChanged" TextWrapping="Wrap" />
                    <ComboBox x:Name="RegionCombo" Grid.Column="2" Grid.Row="1" Height="22" Margin="2,0,1,0" Width="54" IsDropDownOpen="False" SelectedIndex="{Binding Mode=TwoWay, Path=RegionIndex}" SelectionChanged="BasicInfoField_SelectionChanged">
                      <ComboBoxItem Content="US" />
                      <ComboBoxItem Content="EU" />
                      <ComboBoxItem Content="KR" />
                      <ComboBoxItem Content="TW" />
                      <ComboBoxItem Content="CN" />
                    </ComboBox>
                  </Grid>
                  <ComboBox x:Name="ClassCombo" Grid.Row="2" Height="24" Margin="111,60,108,0" SelectionChanged="ClassCombo_SelectionChanged" VerticalAlignment="Top" Visibility="Collapsed">
                    <ComboBoxItem Visibility="Collapsed" />
                    <ComboBoxItem Content="Juggernaut" />
                    <ComboBoxItem Content="Marauder" />
                    <ComboBoxItem Content="Assassin" />
                    <ComboBoxItem Content="Sorcerer" />
                    <ComboBoxItem Content="Powertech" />
                    <ComboBoxItem Content="Mercenary" />
                    <ComboBoxItem Content="Operative" />
                    <ComboBoxItem Content="Sniper" />
                    <ComboBoxItem Content="Guardian" />
                    <ComboBoxItem Content="Sentinel" />
                    <ComboBoxItem Content="Shadow" />
                    <ComboBoxItem Content="Sage" />
                    <ComboBoxItem Content="Vanguard" />
                    <ComboBoxItem Content="Commando" />
                    <ComboBoxItem Content="Scoundrel" />
                    <ComboBoxItem Content="Gunslinger" />
                  </ComboBox>
                  <TextBlock x:Name="LB_Race" Grid.Row="3" Margin="1,2,2,2" Text="Race:" TextWrapping="Wrap" />
                  <ComboBox x:Name="RaceCombo" Grid.Row="4" Height="22" Margin="1,0,2,2" SelectedIndex="{Binding Mode=TwoWay, Path=RaceIndex}" SelectionChanged="BasicInfoField_SelectionChanged">
                    <ComboBoxItem Visibility="Collapsed" />
                    <!-- 0 -->
                    <ComboBoxItem Content="Human" />
                    <!-- 1 -->
                    <ComboBoxItem Content="Chiss" />
                    <!-- 2 -->
                    <ComboBoxItem Content="Mirakula" />
                    <!-- 3 -->
                    <ComboBoxItem Content="Rattataki" />
                    <!-- 4 -->
                    <ComboBoxItem Content="Sith Pureblood" />
                    <!-- 5 -->
                    <ComboBoxItem Content="Twi'lek" />
                    <!-- 6 -->
                    <ComboBoxItem Content="Gnome" />
                    <!-- 7 -->
                    <ComboBoxItem Content="Zabrak" />
                    <!-- 8 -->
                  </ComboBox>
                  <ComboBox x:Name="ModelCombo" Grid.Row="2" Height="22" Margin="1,0,2,0" SelectionChanged="ModelCombo_SelectionChanged" VerticalAlignment="Top" Visibility="Collapsed" d:LayoutOverrides="HorizontalAlignment" />
                  <TextBlock x:Name="LB_ClassModel" Grid.Row="1" Margin="1,2,2,2" Text="Class/Model:" TextWrapping="Wrap" />
                  <local:ClassModelPicker x:Name="CMP_ClassModel" Grid.Row="2" Height="22" Margin="1,0,2,0" VerticalAlignment="Top" />
                  <TextBlock x:Name="LB_LightDark" Grid.Row="1" Grid.Column="1" Margin="1,2,2,2" Text="Light/Dark Side:" TextWrapping="Wrap" />
                  <ComboBox x:Name="CB_LightDark" Grid.Row="2" Grid.Column="1" Height="22" Margin="1,0,2,0" SelectionChanged="LightDarkCombo_SelectionChanged" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment">
                    <System:String>Light V</System:String>
                    <System:String>Light IV</System:String>
                    <System:String>Light III</System:String>
                    <System:String>Light II</System:String>
                    <System:String>Light I</System:String>
                    <System:String>Neutral</System:String>
                    <System:String>Dark I</System:String>
                    <System:String>Dark II</System:String>
                    <System:String>Dark III</System:String>
                    <System:String>Dark IV</System:String>
                    <System:String>Dark V</System:String>
                  </ComboBox>
                </Grid>
              </layoutToolkit:AccordionItem>
            </layoutToolkit:Accordion>
            <local:CalculationDisplay x:Name="CalculationDisplay" Grid.Row="2" Margin="1,4,1,0" />
          </Grid>
        </TabItem>
        <TabItem x:Name="TalentTreeTab" Header="Talents">
          <Grid>
            <local:TalentPicker x:Name="TalentPicker" />
          </Grid>
        </TabItem>
        <TabItem x:Name="BuffsTab" Header="Buffs">
          <Grid>
            <local:BuffsControl x:Name="BuffControl" Height="Auto" VerticalAlignment="Stretch" />
          </Grid>
        </TabItem>
        <TabItem x:Name="OptionsTab" Header="Options">
          <ScrollViewer x:Name="OptionsView" Margin="0,0,0,0" Padding="0,0,0,0" BorderThickness="0,0,0,0" VerticalScrollBarVisibility="Auto" />
        </TabItem>
        <TabItem x:Name="BossTab" Header="Boss Handler">
          <Grid>
            <local:BossPicker x:Name="BossPicker" Height="Auto" VerticalAlignment="Stretch" />
          </Grid>
        </TabItem>
      </TabControl>
    </DockPanel>
    <WrapPanel x:Name="Wrap_RightSide" Grid.Column="2" Grid.Row="1" Margin="0,2,2,0" HorizontalAlignment="Left" Orientation="Vertical" VerticalAlignment="Top">
      <local:ItemButtonWithEnchant x:Name="HeadButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="ChestButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="HandButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="BeltButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="LegButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="FeetButton" Margin="2" ShowItemModType4="False">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
      <local:ItemButtonWithEnchant x:Name="OffHandButton" Margin="2">
        <local:ItemButtonWithEnchant.RenderTransform>
          <ScaleTransform />
        </local:ItemButtonWithEnchant.RenderTransform>
      </local:ItemButtonWithEnchant>
    </WrapPanel>
    <local:GraphDisplay x:Name="ComparisonGraph" Grid.Column="3" Grid.Row="1" Margin="0,-2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
    <StackPanel Grid.Column="0" Grid.ColumnSpan="4" HorizontalAlignment="Right" Orientation="Horizontal">
      <Button x:Name="BT_SubmitIssue" Margin="0,4,8,4" Click="SubmitIssue_Click" Content="Submit an Issue" />
      <Button x:Name="PerformanceTestButton" Margin="0,4,8,4" Click="PerformanceTest" Content="Test Calculation Performance" />
      <Button x:Name="OfflineInstallButton" Margin="0,4,8,4" Click="InstallOffline" Content="Install Offline" />
    </StackPanel>
    <Rectangle Grid.ColumnSpan="4" Grid.Row="2" Margin="0" VerticalAlignment="Stretch">
      <Rectangle.Stroke>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
          <GradientStop Color="#FFA3AEB9" />
          <GradientStop Color="#FF8399A9" Offset="0.375" />
          <GradientStop Color="#FF718597" Offset="0.375" />
          <GradientStop Color="#FF617584" Offset="1" />
        </LinearGradientBrush>
      </Rectangle.Stroke>
      <Rectangle.Fill>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
          <GradientStop Color="#FFDEDEDE" Offset="1" />
          <GradientStop Color="#FFFFFFFF" Offset="0" />
        </LinearGradientBrush>
      </Rectangle.Fill>
    </Rectangle>
    <Grid Grid.ColumnSpan="4" Grid.Row="2">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
      </Grid.ColumnDefinitions>
      <TextBlock x:Name="StatusText" Grid.Column="0" Margin="4" Text="Status" />
      <TextBlock x:Name="LB_Models" Grid.Column="1" Margin="4" Text="Check the Model Status Page for information on the Development Status" />
      <TextBlock x:Name="VersionText" Grid.Column="2" Margin="4" Foreground="#99393939" Text="Rage X.X.X.X" />
    </Grid>
  </Grid>
</UserControl>